﻿namespace AuctionServer.Domain
{
    internal sealed class UserInfo
    {
        public long Id { get; set; }
        public string Name { get; set; }
        public string NickName { get; set; }
        public int AuctionMoney { get; set; }
        
        public override bool Equals(object obj)
        {
            var target = obj as UserInfo;
            if (target != null)
            {
                return Id == target.Id && AuctionMoney == target.AuctionMoney;
            } return false;
        }
        public override int GetHashCode()
        {
            var result = Id.GetHashCode();
            return result;
        }
    }
}
